package edu.zcmu.seckill.service;

import edu.zcmu.seckill.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.zcmu.seckill.response.R;
import edu.zcmu.seckill.vo.AlterPasswordVo;
import edu.zcmu.seckill.vo.LoginVo;
import edu.zcmu.seckill.vo.PayVo;
import edu.zcmu.seckill.vo.RegisterVo;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 唐诗
 * @since 2022-02-17
 */
public interface UserService extends IService<User> {

    R login(LoginVo loginVo);

    R register(RegisterVo registerVo);


    int updateUser(User user);

    HashMap<String, Object> getAllOrder(Integer pageNum, HttpServletRequest request);

    R delUserOrder(PayVo payVo, HttpServletRequest request);

    R alterPassword(AlterPasswordVo passwordVo, HttpServletRequest request);

    R getUserInfo(HttpServletRequest request);
}
